package com.guochenglang.www.pojo;

import com.guochenglang.www.pojo.annotate.Table;

import java.util.Objects;

/**
 * 成员表
 *
 * @author 郭程朗
 */
@Table("member")
public class Member {
    /**
     * 主键
     */
    private Integer id;
    /**
     * 成员id
     */
    private Integer memberId;
    /**
     * 成员身份状态
     */
    private String memberStatus;
    /**
     * 知识库id
     */
    private Integer baseId;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Member member = (Member) o;
        return Objects.equals(id, member.id) && Objects.equals(memberId, member.memberId) && Objects.equals(memberStatus, member.memberStatus) && Objects.equals(baseId, member.baseId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, memberId, memberStatus, baseId);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBaseId() {
        return baseId;
    }

    public void setBaseId(Integer baseId) {
        this.baseId = baseId;
    }

    public String getMemberStatus() {
        return memberStatus;
    }

    public void setMemberStatus(String memberStatus) {
        this.memberStatus = memberStatus;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberIde(Integer memberId) {
        this.memberId = memberId;
    }

    public Member(Integer id, Integer baseId, String memberStatus, Integer memberId) {
        this.id = id;
        this.baseId = baseId;
        this.memberStatus = memberStatus;
        this.memberId = memberId;
    }

    public Member() {
    }

    @Override
    public String toString() {
        return "Member{" +
                "id=" + id +
                ", memberId='" + memberId + '\'' +
                ", memberStatus='" + memberStatus + '\'' +
                ", baseId=" + baseId +
                '}';
    }
}
